<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>ajax</title>
    <script src="js/lib/sea.js"></script>
</head>
<body>
<input type="button" value="获取数据" id="getData"/>

<div id="serverData">

</div>
<script type="text/javascript">
    seajs.config({
        base: "http://localhost:8080/ajax/s/js/"

    });

    seajs.use("main.js");
</script>
</body>

</html>